package com.lsk.serviceDriverUser.controller;

import com.lsk.internalcommon.DTO.DriverCarBindingRelationship;
import com.lsk.internalcommon.DTO.ResponseResult;
import com.lsk.serviceDriverUser.service.DriverCarBindingRelationshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/DriverCarBindingRelationship")
public class DriverCarBindingRelationshipController {
    @Autowired
    private DriverCarBindingRelationshipService relationshipService;

    @PostMapping("/bind")
    public ResponseResult bind(@RequestBody DriverCarBindingRelationship relationship){
        return relationshipService.bind(relationship);
    }

    @PostMapping("/unbind")
    public ResponseResult unbind(@RequestBody DriverCarBindingRelationship relationship){
        return relationshipService.unbind(relationship);
    }
}
